package cn.cau.service;

import cn.cau.entity.Category;
import cn.cau.entity.CodeRule;

import java.util.List;

public interface CodeRuleService {


    public CodeRule findCodeRuleById(int codeRuleId);

    public List<CodeRule> findCodeRuleAll();

    public List<CodeRule> findCodeRuleByName(String name);

    public List<CodeRule> findCodeRuleByCategoryId(int categoryId);

    public int insertCodeRule(CodeRule codeRule);

    public int saveCodeRule(CodeRule codeRule);

    public int updateCodeRule(CodeRule codeRule);

}
